package br.com.sga.util.conexao;

import br.com.sga.erro.ConexaoException;
import java.sql.Connection;

/**
 *
 * @author kenzo
 */
public interface DataSource {
    
    /**
     * Retorna uma conexao com o banco de dados
     * @return Connection
     * @throws BDException 
     */
    public Connection getConnection() throws ConexaoException;
    
    /**
     * Libera a conexao no pool
     * @throws BDException 
     */
    public void closeConnection(Connection c) throws ConexaoException;
}
